﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.WeiXinApiModel.ParamModel
{
    /// <summary>
    ///  获取广告信息
    /// </summary>
    public class BoardChartParam
    {
        /// <summary>
        ///  店铺id 【-1：全部】
        /// </summary>
        public int storeId { get; set; } = -1;
        /// <summary>
        ///  平台类别
        /// </summary>
        public int platType { get; set; }
        /// <summary>
        ///  分组名
        /// </summary>
        public string groupName { get; set; }
        /// <summary>
        ///  过期类别
        ///  -1：全部
        ///  0：未过期
        ///  1：已过期
        /// </summary>
        public int pastType { get; set; } = -1;
        /// <summary>
        ///  产品类别
        ///  VRPPT：1
        ///  创客：2
        ///  头记：3
        ///  校史馆：4
        /// </summary>
        //[Required(ErrorMessage = "产品类别必填项")]
        public int proType { get; set; } = 1;
        /// <summary>
        ///  字典：广告、公告
        /// </summary>
        [Required(ErrorMessage = "广告类别必填项")]
        public string adType { get; set; }
        /// <summary>
        ///  返回记录条数
        /// </summary>
        public int size { get; set; } = 0;
        /// <summary>
        ///  时间范围
        /// </summary>
        public int date_scope { get; set; } = 1;
        /// <summary>
        ///  排序方式
        ///  0：序号倒序
        ///  1：序号升序
        ///  2：日期倒序
        ///  3：日期升序
        /// </summary>
        public int orderType { get; set; } = 0;
    }
    public class BoardDetailId
    {
        /// <summary>
        ///  广告id
        /// </summary>
        [Required(ErrorMessage = "广告id必填项")]
        public int ad_id { get; set; }
    }
}
